<!--右侧内容开始-->
<div class="fadeIn">
    <br />
    <ol class="breadcrumb">
        <li class="active">
            <span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;
            <mainpage></mainpage>
        </li>
        <li class="active">运维工作台 / 短信系统一键切换</li>
    </ol>

    <div class="rightbar">
        <div class="table-box">
            <div class="row clearfix marT15 marB15" style="margin-left: 0px;">
                <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#add1" ng-click="switch()">一键切换</button>
            </div>
            <table class="table table-bordered table-striped text-center bg-info marT15">
                <thead>
                    <tr class="info">
                        <th class="text-center">序号</th>
                        <th class="text-center">服务ID</th>
                        <th class="text-center">短信服务名称</th>
                        <th class="text-center">运行平台名称</th>
                        <th class="text-center">说明</th>
                    </tr>
                </thead>
                <tbody id="appList">
                    <tr ng-repeat="Item in result">
                        <td>{{ $index+1 }}</td>
                        <td class="w115">{{Item.sm_srv_id}}</td>
                        <td class="w115">{{Item.sm_srv_name}}</td>
                        <td class="w115">{{Item.runingFlag}}</td>
                        <td class="w85">{{Item.remark}}</td>
                    </tr>

                </tbody>
            </table>

        </div>
        <!-- <page></page> -->
    </div>
</div>

<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="">一键切换</h4>
            </div>
            <div class="modal-body">
                <div class="row marB15">
                    <br>
                    <span class="col-xs-12">
                        <label class="left">
                            <span>请输入您的密码：</span>
                        </label>
                        <input type="password" class="form-control line4 right" ng-model="addData.pwd" />
                    </span>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-sm" ng-click="changeAll()">切换</button>
            </div>
        </div>
    </div>
</div>

<!-- 提示框 -->
<div class="modal fade" id="delete">
    <div class="modal-dialog">
        <div class="modal-content message_align">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">提示信息</h4>
            </div>
            <div class="modal-body">
                <p>您确认切换吗？</p>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="url" />
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <a class="btn btn-primary" data-dismiss="modal">确定</a>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- 提示框结束 -->

<!-- 加载框 -->
<span class='loaded' ng-show='loaded'>
    <img src="img/load.gif">
</span>
<!-- 加载框 完成-->